<template>
  <div class="app-container">
    <el-tabs v-model="activeName">
      <el-tab-pane label="未读" name="second">
        <table-list :state="1" v-if="activeName=='second'" apiFun="getUnreadList"></table-list>
      </el-tab-pane>
      <el-tab-pane label="已读" name="third">
        <table-list :state="2" v-if="activeName=='third'" apiFun="getReadList"></table-list>
      </el-tab-pane>
      <el-tab-pane label="全部" name="first">
        <table-list :state="0" v-if="activeName=='first'" apiFun="getNoticeList"></table-list>
        <!--        <msg-table :state="0" v-if="activeName=='first'" />-->
      </el-tab-pane>
      <el-tab-pane label="我的发送" name="fourth">
        <table-list :state="3" v-if="activeName=='fourth'" apiFun="getIpostList"></table-list>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
import TableList from "./TableList";
export default {
  components: {
    TableList,
  },
  data() {
    return {
      activeName: "second"
    };
  },
  methods: {

  }
};
</script>
